﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.ApplicationModel.Bootstrap.Extensibility;

namespace YasharEl.Infrastructure.ApplicationModel.Bootstrap.Syntax
{
    /// <summary>
    /// Begin syntax which allows to define behavior which is executed at the beginning.
    /// </summary>
    /// <typeparam name="TExtension">The type of the extension.</typeparam>
    public interface IBeginSyntax<TExtension> : IExecuteAction<TExtension>,
                                                IExecuteActionOnExtension<TExtension>,
                                                IExecuteActionOnExtensionWithContext<TExtension>,
                                                IEndSyntax<TExtension>
        where TExtension : IBootstrappingExtension
    {
        /// <summary>
        /// Gets the begin of the syntax chain and attaches behavior to the begin
        /// </summary>
        IWithBehavior<TExtension> Begin { get; }
    }
}
